package com.synergy.stockflow.production.create;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.synergy.stockflow.production.entity.ProductionReport;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReportOrTaskVo {
    private String planId; //生产计划id
    private String detailId; //生产计划明细id
    private String operationId; //工序id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date planStartDate; //计划开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date planEndDate; //计划结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date actualFinishTime; //实际完成时间
    private BigDecimal assignedQuantity;//分配数量
    private BigDecimal completedQuantity;//完成数量
    private Integer taskStatus;//任务状态
    private String teamId; //班组id
    private Integer qualityStatus;//质检状态
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date taskCreateTime;//任务创建时间
    private BigDecimal passRate;//合格率

    private ProductionReport productionReport; //生产汇报
}
